/*
 * @Author: liyin 2179253556@qq.com
 * @Date: 2023-03-07 16:16:18
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2025-05-08 16:46:04
 * @FilePath: IndexApi.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// 引入请求方式
import { get, post, post2 } from '../../util/http'
// 获取服务器时间
export const getTime = () => post2('/TimeStamp')
// 获取学校信息
export const getSchoolInfo = () => get('/SchoolUser/School/')
// 获取家长下面绑定的学生
export const getStudent = (obj: object) => get('/SchoolUser/Guardian/', obj)
// 获取学生信息详情
export const studentInfo = (obj: object) => get('/SchoolUser/Student/', obj)
// 家长签到
export const signtRegister = (obj: object) => post('/PickUpSystem/ParentSign', obj)
// 家长接到小孩
export const ParentReceived = (obj: object) => post('/PickUpSystem/ParentReceived', obj)
// 家长获取小孩
export const GetBindStudent = (obj: object) => get('/PickUpSystem/GetBindStudentNew', obj)
// 老师查看学生家长到达模块
export const ClassDisplay = (obj: object) => post('/PickUpSystem/ClassDisplay', obj)
// 接送系统获取班级
export const ClassList = (obj: object) => get('/SchoolUser/Class/', obj)
// 上传图片到七牛云获取签名
export const GetSign = (obj: object) => get('/SchoolUser/Oss/', obj)
// 绑定待接人相关信息
export const BindSubStudent = (obj: object) => post('/PickUpSystem/BindSubStudent', obj)
// 班主任或者生活老师端
export const ClassPickUpRecord = (obj: object) => post('/PickUpSystem/ClassPickUpRecord', obj)
// 家长端查询孩子离校或接送记录
export const ParentPickUpRecord = (obj: object) => post('/PickUpSystem/ParentPickUpRecord', obj)
// 根据帮接人电话号码获取小孩
export const CheckAndGet = (obj: object) => get('/PickUpSystem/CheckAndGet', obj)
// 短信发送
export const GetCode = (obj: object) => get('/PickUpSystem/GetCode', obj)
// 通过手机号码和验证码验证
export const CheckCode = (obj: object) => get('/PickUpSystem/checkCode', obj)
// 检查是否放学接口
export const ClassOverCheck = () => get('/PickUpSystem/ClassOverCheck')
// 获取所有学部
export const getFacullyApi = () => get('/PickUpSystem/getClass/getFaculty')
export const getGradeApi = (obj?: any) => get('/PickUpSystem/getClass/getGrade', obj)
export const getClassApi = (obj?: any) => get('/PickUpSystem/getClass/getClass', obj)

// 老师查看学生家长到达模块
export const ClassDisplay2 = () => get('/NoFeelingDisplay/back/attendance/display')
